/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package cn.knet.sp.ncrm.modules.sys.customerstatus.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import org.hibernate.validator.constraints.Length;

import java.util.Date;

import cn.knet.sp.ncrm.common.persistence.DataEntity;

/**
 * 客户状态Entity
 *
 * @author zhangbin
 * @version 2015-08-28
 */
public class CustomerStatus extends DataEntity<CustomerStatus> {

	private static final long serialVersionUID = 1L;
	private String content;        // 内容
	private String operation;        // 操作类型,创建CREATE成单DONE结束END放置
	private String[] operations;//多个状态信息
	private Long version;        // 版本
	private Date dateCreated;        // 创建时间
	private Date lastUpdated;        // 更新时间

	public CustomerStatus() {
		super();
	}

	public CustomerStatus(String id) {
		super(id);
	}

	@Length(min = 1, max = 255, message = "内容长度必须介于 1 和 255 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getOperation() {
		return operation;
	}

	public void setOperation(String operation) {
		this.operation = operation;
	}

	public String[] getOperations() {
		return operations;
	}

	public void setOperations(String[] operations) {
		this.operations = operations;
	}

	public Long getVersion() {
		return version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getDateCreated() {
		return dateCreated;
	}

	public void setDateCreated(Date dateCreated) {
		this.dateCreated = dateCreated;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getLastUpdated() {
		return lastUpdated;
	}

	public void setLastUpdated(Date lastUpdated) {
		this.lastUpdated = lastUpdated;
	}


}